import type { Plugin } from '#/global'

const pluginConfig: Plugin.PluginConfig = {
  install() { },
  config: {
    enable: import.meta.env.DEV,
    info: {
      name: 'ai-warning/organization',
      version: '1.0.0',
      author: 'X.Mo',
      description: '提供组织管理功能',
    },
  },
  views: [
    {
      name: 'OrganizationRoute',
      path: '/organization',
      meta: {
        title: '组织管理',
        i18n: 'menu.organization',
        icon: 'ep:office-building',
        type: 'M',
        hidden: false,
        subForceShow: true,
        breadcrumbEnable: true,
        copyright: false,
        cache: true,
      },
      children: [
        {
          name: 'organization:rdOrganizeEnterprise',
          path: '/organization/rdOrganizeEnterprise',
          meta: {
            title: '企业管理',
            i18n: 'rd_organize_enterprise.menu.rdOrganizeEnterprise',
            icon: 'ep:school',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeEnterprise/index.vue'),
        },
        {
          name: 'organization:rdOrganizeZone',
          path: '/organization/rdOrganizeZone',
          meta: {
            title: '区域管理',
            i18n: 'rd_organize_zone.menu.rdOrganizeZone',
            icon: 'ep:location',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeZone/index.vue'),
        },
        {
          name: 'organization:rdOrganizeProjLine',
          path: '/organization/rdOrganizeProjLine',
          meta: {
            title: '项目管理',
            i18n: 'rd_organize_proj_line.menu.rdOrganizeProjLine',
            icon: 'ep:connection',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeProjLine/index.vue'),
        },
        {
          name: 'organization:rdOrganizeArea',
          path: '/organization/rdOrganizeArea',
          meta: {
            title: '工区管理',
            i18n: 'rd_organize_area.menu.rdOrganizeArea',
            icon: 'ep:map-location',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeArea/index.vue'),
        },
        {
          name: 'organization:rdOrganizeAreaStand',
          path: '/organization/rdOrganizeAreaStand',
          meta: {
            title: '站点管理',
            i18n: 'rd_organize_area_stand.menu.rdOrganizeAreaStand',
            icon: 'ep:document-checked',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeAreaStand/index.vue'),
        },
       
        {
          name: 'organization:rdOrganizeUser',
          path: '/organization/rdOrganizeUser',
          meta: {
            title: '组织用户',
            i18n: 'rd_organize_user.menu.rdOrganizeUser',
            icon: 'ep:user',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeUser/index.vue'),
        },
        
        {
          name: 'organization:rdOrganizeUserApply',
          path: '/organization/rdOrganizeUserApply',
          meta: {
            title: '用户申请',
            i18n: 'rd_organize_user_apply.menu.rdOrganizeUserApply',
            icon: 'ep:tickets',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdOrganizeUserApply/index.vue'),
        },
      ],
    },
  ],
}

export default pluginConfig

